package ink.xiaobaibai.valited;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Constraint(validatedBy = {DoubleValueConstraint.class})/*指定上自定义的校验类*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DoubleSize {

    String message() default "经纬度不在范围内";

    Class<?>[] groups() default {};/*分组属性*/

    Class<? extends Payload>[] payload() default {};/*暂不明白这个的作用*/

    double min() default Double.MIN_VALUE;

    double max() default Double.MAX_VALUE;

}
